package de.fhb.itunes.repository.data;

import java.io.Serializable;
import java.util.HashMap;

public class Album_VO implements Serializable {
	private HashMap<Integer, Musik_VO> titel;
	private String albumname;
	private String albuminterpret;
	private int	coverid;

	public HashMap<Integer, Musik_VO> getTitel() {
		return titel;
	}

	public void setTitel(HashMap<Integer, Musik_VO> titel) {
		this.titel = titel;
	}

	public String getAlbumname() {
		return albumname;
	}

	public void setAlbumname(String albumname) {
		this.albumname = albumname;
	}

	public String getAlbuminterpret() {
		return albuminterpret;
	}

	public void setAlbuminterpret(String albuminterpret) {
		this.albuminterpret = albuminterpret;
	}

	public String toString() {
		String erg = "";
		erg += this.albumname;
		return erg;
	}

	public boolean equals(Object obj){
		boolean erg = false;
		if(obj != null){
			if(obj.getClass() == Album_VO.class){
				Album_VO album = (Album_VO) obj;
				if(this.albuminterpret.equals(album.getAlbuminterpret()) && this.albumname.equals(album.getAlbumname())){
					if( super.equals(obj)){
						erg = true;
					}
				}
			}
		}
		return erg;
	}

	public int getCoverid() {
		return coverid;
	}

	public void setCoverid(int coverid) {
		this.coverid = coverid;
	}
	

}
